package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name     string `gorm:"type:varchar(30)" json:"name"`
	Password string `gorm:"type:varchar(225)" json:"password"`
}

type Posts struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)" json:"title"`
	Content string `gorm:"type:varchar(30)" json:"content"`
	Img     string `gorm:"type:varchar(225)" json:"img"`
}

type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)" json:"name"`
	Num  int    `gorm:"type:varchar(30)" json:"num"`
}
type GoodClass struct {
	gorm.Model
	ClaID      int    `gorm:"type:varchar(30)" json:"claID"`
	OrderClass string `gorm:"type:varchar(30)"`
	StrClass   string `gorm:"type:varchar(30)"`
}
type ListClass struct {
	GlsId      int    `gorm:"type:int"`
	Name       string `gorm:"type:varchar(30)" json:"name"`
	Num        int    `gorm:"type:varchar(30)" json:"num"`
	OrderClass string `gorm:"type:varchar(30)"`
	StrClass   string `gorm:"type:varchar(30)"`
}
